import request from "@/utils/request";

//分页查询
export const queryPageApi = (data) => request.get("/depts", { params: data });

// 获取所有部门列表
export const queryListApi = () => request.get("/depts/list");

export const addApi = (data) => request.post("/depts", data);

export const queryByIdApi = (id) => request.get(`/depts/${id}`);
export const updateApi = (data) => request.put("/depts", data);
export const deleteApi = (id) => request.delete(`/depts/${id}`);
